//
//  UIViewControls.h
//  WisdomPartyBuilding
//
//  Created by Can on 2018/4/23.
//  Copyright © 2018年 hwd. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIViewControls : UIView

/*创建Button
 *rect:      frame  布局参数
 *imageName: 图片名称
 *text:      text 文本内容
 */
+ (UIButton *)creatBtn:(CGRect)rect imageName:(NSString *)imageName text:(NSString *)text;

/*创建Button
 *rect:      frame  布局参数
 *title:     title
 */
+ (UIButton *)creatButton:(CGRect)rect title:(NSString *)title;

/*创建Button
 *rect:      frame  布局参数
 *imageName:     imageName  背景图片名称
 */
+ (UIButton *)creatButtonBackImage:(CGRect)rect imageName:(NSString *)imageName;

/*创建Button
 *rect:      frame  布局参数
 *imageName:     imageName  图片名称
 */
+ (UIButton *)creatButtonSetImage:(CGRect)rect imageName:(NSString *)imageName;

/*创建ImageView
 *imageName: 图片名称
 */
+ (UIImageView *)creatImageView:(CGRect)rect imageName:(NSString *)imageName;

/*创建Lable
 *rect:      frame  布局参数
 *text:      text 文本内容
 *textColor: text 文字颜色
 */
+ (UILabel *)creatLable:(CGRect)rect text:(NSString *)text textColor:(UIColor *)textColor textFont:(UIFont *)font;

/*获取Lable高度
 *lable:      lable  文本
 */
+ (CGFloat)lableHeight:(UILabel *)lable;

@end
